package by.siarhei.java.tij.access.factory;

/**
 * @author Siarhei Shchahratsou <s.siarhei@gmail.com>
 * @since 09.03.14
 */

abstract class AbstractShape implements Shape {
    @Override
    public String name() {
        return getClass().getSimpleName();
    }
}

class Rectangle extends AbstractShape {
}

class Square extends AbstractShape {
}

class Triangle extends AbstractShape {
}
